+++ /dev/null
-@echo off\r
-REM\r
-REM Simple Windows NT/2000/XP .cmd version of GPSBabel testo script\r
-REM\r
-\r
-SET GPSBABEL_FREEZE_TIME=y\r
-SET TMPDIR=%TEMP%\WINTESTO\r
-MKDIR %TMPDIR% 2>NUL:\r
-\r
-GOTO :REALSTART\r
-\r
-REM ==================================\r
-\r
-:CommonCOMPARE\r
-SET PARAM1=%2\r
-SET PARAM2=%3\r
-REM Test if param3 was a dir rather than a file, if so add a \* to make fc work\r
-FOR %%A IN (%3) DO IF "d--------"=="%%~aA" SET PARAM2=%3\*\r
-FOR /f "delims=" %%a IN ('fc %PARAM1% %PARAM2%') DO IF "x%%a"=="xFC: no differences encountered" GOTO :EOF\r
-REM Show the first 5 lines of difference\r
-fc %1 /LB5 %PARAM1% %PARAM2%\r
-if errorlevel 1 ECHO %* are not the same (first 5 differences above) - pausing. ^C to quit if required\r
-if errorlevel 1 PAUSE\r
-GOTO :EOF\r
-\r
-REM ==================================\r
-\r
-:COMPARE\r
-CALL :CommonCOMPARE /L %1 %2\r
-GOTO :EOF\r
-\r
-REM ==================================\r
-\r
-:BINCOMPARE\r
-CALL :CommonCOMPARE /B %1 %2\r
-GOTO :EOF\r
-\r
-REM ==================================\r
-\r
-:SORTandCOMPARE\r
-SORT <%1 >%TMPDIR%\s1\r
-SORT <%2 >%TMPDIR%\s2\r
-CALL :COMPARE %TMPDIR%\s1 %TMPDIR%\s2\r
-GOTO :EOF\r
-\r
-REM ==================================\r
-\r
-:REALSTART\r
-\r
-\r
-REM Turn on GNU libc instrumentation.\r
-\r
-SET PNAME=.\gpsbabel\r
-IF NOT EXIST %PNAME%.EXE ECHO Can't find %PNAME%&& GOTO :EOF\r
-\r
-\r
-\r
-\r
-\r
-REM Some formats are just too boring to test. The ones that\r
-REM are xcsv include \r
-REM garmin301 \r
-REM garmin_poi \r
-REM gpsdrivetrack\r
-REM nima \r
-REM mapconverter\r
-REM geonet\r
-REM saplus\r
-REM s_and_t\r
-REM Geocaching .loc\r
-DEL %TMPDIR%\gl.loc\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o geo -F %TMPDIR%\gl.loc\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\gl.loc reference\r
-\r
-REM GPSUtil\r
-DEL %TMPDIR%\gu.wpt %TMPDIR%\1.gpx %TMPDIR%\2.gpx\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o gpsutil -F %TMPDIR%\gu.wpt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\gu.wpt reference\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gpsutil -f %TMPDIR%\gu.wpt -o gpx -F %TMPDIR%\1.gpx\r
-%PNAME% -i gpsutil -f reference\gu.wpt -o gpx -F %TMPDIR%\2.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\1.gpx %TMPDIR%\2.gpx\r
-\r
-REM GPSman \r
-DEL %TMPDIR%\gm.gm %TMPDIR%\gm.gm+\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o gpsman -F %TMPDIR%\gm.gm\r
-%PNAME% -i gpsman -f %TMPDIR%\gm.gm -o gpsutil -F %TMPDIR%\gm.gm+\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\gm.gm+ %TMPDIR%\gu.wpt\r
-\r
-REM GPX\r
-DEL %TMPDIR%\gl.gpx %TMPDIR%\gpx.gpx\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o gpx -F %TMPDIR%\gl.gpx\r
-%PNAME% -i gpx -f %TMPDIR%\gl.gpx -o gpsutil -F %TMPDIR%\gpx.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\gpx.gpx %TMPDIR%\gu.wpt\r
-\r
-REM GTM\r
-DEL %TMPDIR%\gl.gpx %TMPDIR%\gpx.gpx\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gtm -f reference\sample.gtm -o gpx -F %TMPDIR%\gtm1.gpx\r
-%PNAME% -i gpx -f %TMPDIR%\gtm1.gpx -o gtm -F %TMPDIR%\gtm.gtm\r
-%PNAME% -i gtm -f %TMPDIR%\gtm.gtm -o gpx -F %TMPDIR%\gtm2.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\gtm1.gpx %TMPDIR%\gtm2.gpx\r
-CALL :COMPARE %TMPDIR%\gtm.gtm reference\sample.gtm\r
-\r
-REM Magellan Mapsend\r
-DEL %TMPDIR%\mm.mapsend %TMPDIR%\mm.gps\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o mapsend -F %TMPDIR%\mm.mapsend\r
-%PNAME% -i mapsend -f %TMPDIR%\mm.mapsend -o gpsutil -F %TMPDIR%\mm.gps\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\mm.gps %TMPDIR%\gu.wpt\r
-\r
-REM Magellan serial\r
-REM TODO\r
-\r
-REM Tiger\r
-REM This one is a little tacky, because it's a very lossy format.\r
-REM so we simply test we can write it, and then read it and write it and\r
-REM get an identical file back.\r
-DEL %TMPDIR%\tiger\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o tiger -F %TMPDIR%\tiger\r
-%PNAME% -i tiger -f %TMPDIR%\tiger -o tiger -F %TMPDIR%\tiger2\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\tiger %TMPDIR%\tiger2\r
-\r
-REM \r
-REM Lowrance USR. Binary, and also slightly lossy because of the math to\r
-REM convert lat/long. It also doesn't support description, which makes it\r
-REM awkward to test.\r
-REM \r
-DEL %TMPDIR%\lowrance1.usr\r
-DEL %TMPDIR%\enchilada1.usr\r
-DEL %TMPDIR%\enchilada.gpx\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o lowranceusr -F %TMPDIR%\lowrance1.usr\r
-@echo off\r
-@echo.\r
-CALL :BINCOMPARE %TMPDIR%\lowrance1.usr reference\lowrance.usr\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i lowranceusr -f %TMPDIR%\lowrance1.usr -o lowranceusr -F %TMPDIR%\lowrance1.usr\r
-@echo off\r
-@echo.\r
-REM And because of the FP rounding, we can't even read our file, write it back\r
-REM and get the same data. Sigh. \r
-REM bincompare reference/lowrance.usr ${TMPDIR}/lowrance1.usr\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i lowranceusr -f reference\all.usr -o gpx -F %TMPDIR%\enchilada.gpx\r
-%PNAME% -i gpx -f %TMPDIR%\enchilada.gpx -o lowranceusr -F %TMPDIR%\enchilada1.usr\r
-@echo off\r
-@echo.\r
-CALL :BINCOMPARE %TMPDIR%\enchilada1.usr reference\enchilada.usr\r
-REM Don't convert icons as waypts\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i lowranceusr,ignoreicons -f reference\all.usr -o gpx -F %TMPDIR%\enchilada.gpx\r
-%PNAME% -i gpx -f %TMPDIR%\enchilada.gpx -o lowranceusr -F %TMPDIR%\enchilada1.usr\r
-@echo off\r
-@echo.\r
-CALL :BINCOMPARE %TMPDIR%\enchilada1.usr reference\ignoreicons.usr\r
-\r
-REM CSV (Comma separated value) data.\r
-\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o csv -F %TMPDIR%\csv.csv\r
-%PNAME% -i csv -f %TMPDIR%\csv.csv -o csv -F %TMPDIR%\csv2.csv\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\csv2.csv %TMPDIR%\csv.csv \r
-\r
-REM \r
-REM Delorme TopoUSA 4 is a CSV strain. \r
-REM \r
-DEL %TMPDIR%\xmap-1.gpx %TMPDIR%\xmap-2.gpx %TMPDIR%\xmap\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i xmap -f reference\xmap -o xmap -F %TMPDIR%\xmap\r
-%PNAME% -i xmap -f reference\xmap -o gpx -F %TMPDIR%\xmap-1.gpx\r
-%PNAME% -i xmap -f %TMPDIR%\xmap -o gpx -F %TMPDIR%\xmap-2.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\xmap-1.gpx %TMPDIR%\xmap-2.gpx\r
-CALL :COMPARE reference\xmap %TMPDIR%\xmap\r
-\r
-REM PCX (Garmin mapsource import) file format\r
-DEL %TMPDIR%\mm.pcx %TMPDIR%\pcx.gps\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o pcx -F %TMPDIR%\mm.pcx\r
-%PNAME% -i pcx -f %TMPDIR%\mm.pcx -o gpsutil -F %TMPDIR%\pcx.gps\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\mm.gps %TMPDIR%\gu.wpt\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -t -i gpx -f reference\track\tracks.gpx -o pcx -F %TMPDIR%\pcx.trk\r
-%PNAME% -t -i pcx -f reference\track\pcx.trk -o pcx -F %TMPDIR%\pcx2.trk\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\pcx.trk %TMPDIR%\pcx2.trk \r
-\r
-REM \r
-REM Magellan file format\r
-REM \r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i magellan -f reference\magfile -o magellan -F %TMPDIR%\magfile\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\magfile reference\magfile\r
-\r
-REM \r
-REM Magellanx is just like, but with longer names. (which this admittedly\r
-REM doesn't actually exercise...)\r
-REM \r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i magellan -f reference\magfile -o magellanx -F %TMPDIR%\magfile2\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\magfile2 reference\magfile\r
-\r
-REM Navitrak DNA marker format\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i dna -f reference\dnatest.txt -o dna -F %TMPDIR%\dnatest.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\dnatest.txt reference\dnatest.txt\r
-\r
-REM PSP (PocketStreets 2002 Pushpin (.PSP)) file format. Use mxf as an \r
-REM intermediate format to avoid binary FP anomalies on compareerent platforms.\r
-DEL %TMPDIR%\psp.mxf %TMPDIR%\mxf.psp\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i psp -f reference\ps.psp -o mxf -F %TMPDIR%\psp.mxf\r
-%PNAME% -i geo -f geocaching.loc -o mxf -F %TMPDIR%\mxf.psp\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\psp.mxf %TMPDIR%\mxf.psp\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i psp -f reference\ps.psp -o gpx -F %TMPDIR%\psp1.gpx\r
-%PNAME% -i psp -f reference\ps.psp -o psp -F %TMPDIR%\xxx.psp\r
-%PNAME% -i psp -f %TMPDIR%\xxx.psp -o gpx -F %TMPDIR%\psp2.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\psp1.gpx %TMPDIR%\psp2.gpx\r
-\r
-REM MXF (Maptech Exchange Format) file format\r
-DEL %TMPDIR%\mx.mxf %TMPDIR%\mxf.mxf\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i mxf -f reference\mxf.mxf -o mxf -F %TMPDIR%\mx.mxf\r
-%PNAME% -i mxf -f %TMPDIR%\mx.mxf -o mxf -F %TMPDIR%\mxf.mxf\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\mxf.mxf reference\r
-\r
-REM tmpro (TopoMapPro Places) file format\r
-DEL %TMPDIR%\topomappro.txt %TMPDIR%\mxf.mxf\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i tmpro -f reference\topomappro.txt -o tmpro -F %TMPDIR%\tmp.txt\r
-%PNAME% -i tmpro -f %TMPDIR%\tmp.txt -o tmpro -F %TMPDIR%\topomappro.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\topomappro.txt reference\r
-\r
-REM TPG (NG Topo!) file format\r
-REM This is hard to test as the datum conversions create minute\r
-REM inconsistencies in the coordinates. So.. we test our i/o \r
-REM against a format that rounds higher than we care to compare\r
-REM for binary data. \r
-DEL %TMPDIR%\topo.mxf %TMPDIR%\tpg.mxf %TMPDIR%\geo.tpg\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o tpg -F %TMPDIR%\geo.tpg\r
-%PNAME% -i tpg -f %TMPDIR%\geo.tpg -o mxf -F %TMPDIR%\tpg.mxf\r
-%PNAME% -i tpg -f reference\tpg.tpg -o mxf -F %TMPDIR%\topo.mxf\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\tpg.mxf %TMPDIR%\topo.mxf\r
-\r
-REM TPO (NG Topo!) file format\r
-REM This is hard to test as the datum conversions create minute\r
-REM inconsistencies in the coordinates. We have four reference files:\r
-REM tpo-sample1.tpo, tpo-sample1.gpx, tpo-sample2.gpx, and\r
-REM tpo-sample2.tpo. These are used to check the conversion to/from\r
-REM TPO format.\r
-DEL %TMPDIR%\tpo-sample1.gpx %TMPDIR%\tpo-sample2.tpo\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -t -i tpo -f reference\track\tpo-sample1.tpo -o gpx -F %TMPDIR%\tpo-sample1.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\tpo-sample1.gpx reference\track\tpo-sample1.gpx\r
-REM ${PNAME} -t -i gpx -f reference/track/tpo-sample2.gpx -o tpo -F ${TMPDIR}/tpo-sample2.tpo\r
-REM bincompare ${TMPDIR}/tpo-sample2.tpo reference/track/tpo-sample2.tpo\r
-\r
-REM OZI (OziExplorer 1.1) file format\r
-DEL %TMPDIR%\oz.wpt %TMPDIR%\ozi.wpt\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i ozi -f reference\ozi.wpt -o ozi -F %TMPDIR%\oz.wpt\r
-%PNAME% -i ozi -f %TMPDIR%\oz.wpt -o ozi -F %TMPDIR%\ozi.wpt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\ozi.wpt reference\r
-\r
-REM Holux support is a little funky to test. Becuase it loses precision,\r
-REM if we convert it to another format, we lose accuracy (rounding) in the\r
-REM coords, so converting it so something else and comparing it never works.\r
-REM So we verify that we can read the reference and write it and get an\r
-REM identical reference.\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i holux -f reference\paris.wpo -o holux -F %TMPDIR%\paris.wpo\r
-@echo off\r
-@echo.\r
-REM compare reference/paris.wpo ${TMPDIR}/paris.wpo\r
-\r
-REM Magellan NAV Companion for PalmOS\r
-REM This format is hard to test, because each record and the database itself\r
-REM contains the time of creation, so two otherwise identical files won't\r
-REM compare accurately. In any case, the files are binary so compare wouldn't\r
-REM like them. So, we convert the reference file to gpsutil and the converted\r
-REM file to gpsutil and make sure they're the same, and that they're the same\r
-REM as one converted on a known-working installation. Unfortunately, this does\r
-REM not verify that the appinfo block was written correctly. However, it does\r
-REM successfully test for some endianness errors that might otherwise go \r
-REM unnoticed.\r
-DEL %TMPDIR%\magnav.pdb %TMPDIR%\magnav.gpu %TMPDIR%\magnavt.gpu\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o magnav -F %TMPDIR%\magnav.pdb\r
-%PNAME% -i magnav -f %TMPDIR%\magnav.pdb -o gpsutil -F %TMPDIR%\magnav.gpu\r
-%PNAME% -i magnav -f reference\magnav.pdb -o gpsutil -F %TMPDIR%\magnavt.gpu\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\magnavt.gpu %TMPDIR%\magnav.gpu\r
-CALL :COMPARE reference\gu.wpt %TMPDIR%\magnav.gpu\r
-\r
-DEL %TMPDIR%\magnav.pdb\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o magnav -F %TMPDIR%\magnav.pdb\r
-@echo off\r
-@echo.\r
-CALL :BINCOMPARE %TMPDIR%\magnav.pdb reference\magnav.pdb\r
-\r
-\r
-\r
-REM GPSPilot Tracker for PalmOS\r
-REM This test is eerily similar to the NAV Companion test. In fact, the \r
-REM converted reference file (magnavr.gpu) is identical.\r
-DEL %TMPDIR%\gpspilot.pdb %TMPDIR%\gpspilot.gpu %TMPDIR%\gpspil_t.gpu\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o gpspilot -F %TMPDIR%\gpspilot.pdb\r
-%PNAME% -i gpspilot -f %TMPDIR%\gpspilot.pdb -o gpsutil -F %TMPDIR%\gpspilot.gpu\r
-%PNAME% -i gpspilot -f reference\gpspilot.pdb -o gpsutil -F %TMPDIR%\gpspil_t.gpu\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\gpspil_t.gpu %TMPDIR%\gpspilot.gpu\r
-CALL :COMPARE reference\gu.wpt %TMPDIR%\gpspilot.gpu\r
-\r
-REM Cetus GPS for PalmOS\r
-REM This test is also similar to the NAV Companion test.\r
-DEL %TMPDIR%\cetus.pdb %TMPDIR%\cetus.gpu %TMPDIR%\cetust.gpu\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o cetus -F %TMPDIR%\cetus.pdb\r
-%PNAME% -i cetus -f %TMPDIR%\cetus.pdb -o gpsutil -F %TMPDIR%\cetus.gpu\r
-%PNAME% -i cetus -f reference\cetus.pdb -o gpsutil -F %TMPDIR%\cetust.gpu\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\cetust.gpu %TMPDIR%\cetus.gpu\r
-CALL :COMPARE reference\cetus.gpu %TMPDIR%\cetus.gpu\r
-\r
-REM QuoVadis GPS for PalmOS\r
-REM This test is derived from the Cetus test above.\r
-DEL %TMPDIR%\quovadis.pdb %TMPDIR%\quovadis.gpu %TMPDIR%\quovadist.gpu\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o quovadis -F %TMPDIR%\quovadis.pdb\r
-%PNAME% -i quovadis -f %TMPDIR%\quovadis.pdb -o gpsutil -F %TMPDIR%\quovadis.gpu\r
-%PNAME% -i quovadis -f reference\quovadis.pdb -o gpsutil -F %TMPDIR%\quovadist.gpu\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\quovadist.gpu %TMPDIR%\quovadis.gpu\r
-CALL :COMPARE reference\quovadis.gpu %TMPDIR%\quovadis.gpu\r
-\r
-REM GpsDrive\r
-DEL %TMPDIR%\gpsdrive.txt\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o gpsdrive -F %TMPDIR%\gpsdrive.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\gpsdrive.txt reference\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gpsdrive -f reference\gpsdrive.txt -o gpsdrive -F %TMPDIR%\gpsdrive2.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\gpsdrive2.txt reference\gpsdrive.txt\r
-\r
-REM XMapHH Street Atlas USA file format\r
-DEL %TMPDIR%\xmapwpt.wpt %TMPDIR%\xmapwpt.xmapwpt\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i xmapwpt -f reference\xmapwpt.wpt -o xmapwpt -F %TMPDIR%\xmapwpt.xmapwpt\r
-%PNAME% -i xmapwpt -f %TMPDIR%\xmapwpt.xmapwpt -o xmapwpt -F %TMPDIR%\xmapwpt.wpt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\xmapwpt.wpt reference\r
-\r
-REM XCSV\r
-REM Test that we can parse a style file, and read and write data in the \r
-REM same xcsv format (a complete test is virtually impossible).\r
-ECHO RECORD_DELIMITER NEWLINE> %TMPDIR%\testo.style\r
-ECHO FIELD_DELIMITER COMMA>> %TMPDIR%\testo.style\r
-ECHO BADCHARS COMMA>> %TMPDIR%\testo.style\r
-ECHO PROLOGUE Header>> %TMPDIR%\testo.style\r
-ECHO EPILOGUE Footer>> %TMPDIR%\testo.style\r
-ECHO IFIELD SHORTNAME,,%%s>> %TMPDIR%\testo.style\r
-ECHO IFIELD LAT_DIRDECIMAL,,%%c%%lf>> %TMPDIR%\testo.style\r
-ECHO IFIELD LON_DECIMALDIR,,%%lf%%c>> %TMPDIR%\testo.style\r
-DEL %TMPDIR%\xcsv.geo %TMPDIR%\xcsv.xcsv\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o xcsv,style=%TMPDIR%\testo.style -F %TMPDIR%\xcsv.geo\r
-%PNAME% -i xcsv,style=%TMPDIR%\testo.style -f %TMPDIR%\xcsv.geo -o xcsv,style=%TMPDIR%\testo.style -F %TMPDIR%\xcsv.xcsv\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\xcsv.geo %TMPDIR%\xcsv.xcsv\r
-\r
-REM Garmin Mapsource This is a binary format with some undocumented\r
-REM fields. This test is therefore intentionally vague. We read a file,\r
-REM convert it to GPX, then write a file as MPS, then read it back and\r
-REM write it as GPX and compare them. Since we're writing both GPX files\r
-REM ourselves from the same version, we're immune to changes in our own\r
-REM GPX output.\r
-\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i mapsource -f reference\mapsource.mps -o gpx -F %TMPDIR%\ms1.gpx\r
-%PNAME% -i mapsource -f reference\mapsource.mps -o mapsource -F %TMPDIR%\ms.mps\r
-%PNAME% -i mapsource -f %TMPDIR%\ms.mps -o gpx -F %TMPDIR%\ms2.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\ms1.gpx %TMPDIR%\ms2.gpx\r
-\r
-REM \r
-REM MRCB mapsource track test\r
-REM \r
-DEL %TMPDIR%\mps-track.mps\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -t -i mapsource -f reference\track\mps-track.mps -o mapsource,mpsverout=3 -F %TMPDIR%\mps-track.mps\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\mps-track.mps reference\track\r
-REM Now do a test of reading waypoints from a track-only file - should have an empty result\r
-DEL %TMPDIR%\mps-track.mps\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i mapsource -f reference\track\mps-track.mps -o mapsource,mpsverout=3 -F %TMPDIR%\mps-track.mps\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\mps-track.mps reference\mps-empty.mps\r
-\r
-REM \r
-REM MRCB mapsource route test\r
-REM \r
-DEL %TMPDIR%\mps-route.mps\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -r -i mapsource -f reference\route\route.mps -o mapsource,mpsverout=4 -F %TMPDIR%\mps-route.mps\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\mps-route.mps reference\route\route.mps\r
-\r
-REM Now do a test of reading tracks from a route-only file - should have an empty result\r
-DEL %TMPDIR%\mps-route.mps\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -t -i mapsource -f reference\route\route.mps -o mapsource,mpsverout=3 -F %TMPDIR%\mps-route.mps\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\mps-route.mps reference\mps-empty.mps\r
-\r
-REM \r
-REM Geocaching Database is a binary Palm format that, like the GPX variants\r
-REM has a zillion "equivalent" encodings of any given record set. So we\r
-REM read the reference file, spin it to GPX and back to GCDB and then spin\r
-REM that one to GPX.\r
-REM \r
-\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gcdb -f reference\GeocachingDB.PDB -o gpx -F %TMPDIR%\gcdb1.gpx -o gcdb -F %TMPDIR%\gcdb1.pdb\r
-%PNAME% -i gpx -f %TMPDIR%\gcdb1.gpx -o gpx -F %TMPDIR%\gcdb2.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\gcdb1.gpx %TMPDIR%\gcdb1.gpx\r
-\r
-REM \r
-REM Duplicate filter - Since filters have no format of their own, we use csv\r
-REM as an intermediate format for testing the filter.\r
-REM \r
-DEL %TMPDIR%\filterdupe.csv1 %TMPDIR%\filterdupe.csv2\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o csv -F %TMPDIR%\filterdupe.csv1\r
-%PNAME% -i geo -f geocaching.loc -f geocaching.loc -x duplicate,shortname -o csv -F %TMPDIR%\filterdupe.csv2\r
-@echo off\r
-@echo.\r
-CALL :SORTandCOMPARE %TMPDIR%\filterdupe.csv1 %TMPDIR%\filterdupe.csv2\r
-\r
-REM \r
-REM Position filter - Since very small distances are essentialy a duplicate \r
-REM position filter, we can test very similarly to the duplicate filter.\r
-REM \r
-DEL %TMPDIR%\filterpos.csv1 %TMPDIR%\filterpos.csv2\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o csv -F %TMPDIR%\filterpos.csv1\r
-%PNAME% -i geo -f geocaching.loc -f geocaching.loc -x position,distance=5f -o csv -F %TMPDIR%\filterpos.csv2\r
-@echo off\r
-@echo.\r
-CALL :SORTandCOMPARE %TMPDIR%\filterpos.csv1 %TMPDIR%\filterpos.csv2\r
-\r
-REM \r
-REM Radius filter\r
-REM \r
-DEL %TMPDIR%\radius.csv\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -x radius,lat=35.9720,lon=-87.1347,distance=14.7 -o csv -F %TMPDIR%\radius.csv\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\radius.csv reference\r
-REM \r
-REM magellan SD card waypoint / route format\r
-REM \r
-DEL %TMPDIR%\magellan.rte\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -r -i magellan -f reference\route\magellan.rte -o magellan -F %TMPDIR%\magellan.rte\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\magellan.rte reference\route\magellan.rte\r
-\r
-\r
-REM \r
-REM GPX routes -- since GPX contains a date stamp, tests will always\r
-REM fail, so we use magellan as an interim format...\r
-REM \r
-DEL %TMPDIR%\gpxroute.gpx %TMPDIR%\maggpx.rte\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -r -i gpx -f reference\route\route.gpx -o gpx -F %TMPDIR%\gpxroute.gpx\r
-%PNAME% -r -i gpx -f %TMPDIR%\gpxroute.gpx -o magellan -F %TMPDIR%\maggpx.rte\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\maggpx.rte reference\route\magellan.rte\r
-\r
-REM \r
-REM GPX tracks -- since GPX contains a date stamp, tests will always\r
-REM fail, so we use magellan as an interim format...\r
-REM \r
-DEL %TMPDIR%\gpxtrack.gpx %TMPDIR%\maggpx.trk\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -t -i gpx -f reference\track\tracks.gpx -o gpx -F %TMPDIR%\gpxtrack.gpx\r
-%PNAME% -t -i magellan -f reference\track\meridian.trk -o gpx -F %TMPDIR%\maggpx.trk\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\maggpx.trk %TMPDIR%\gpxtrack.gpx\r
-\r
-REM \r
-REM MAPSEND waypoint / route format\r
-REM \r
-DEL %TMPDIR%\route.mapsend\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -r -i mapsend -f reference\route\route.mapsend -o mapsend -F %TMPDIR%\route.mapsend\r
-@echo off\r
-@echo.\r
-CALL :BINCOMPARE %TMPDIR%\route.mapsend reference\route\route.mapsend\r
-\r
-REM \r
-REM MAPSEND track format \r
-REM \r
-DEL %TMPDIR%\mapsend.trk\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -t -i mapsend -f reference\track\mapsend.trk -o mapsend -F %TMPDIR%\mapsend.trk\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\mapsend.trk reference\track\r
-REM \r
-REM copilot\r
-REM \r
-DEL %TMPDIR%\copilot.pdb\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i copilot -f reference\UKultralight.pdb -o copilot -F %TMPDIR%\cop.pdb\r
-%PNAME% -i copilot -f reference\UKultralight.pdb -o gpx -F %TMPDIR%\cop1.gpx\r
-%PNAME% -i copilot -f %TMPDIR%\cop.pdb -o gpx -F %TMPDIR%\cop2.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\cop1.gpx %TMPDIR%\cop2.gpx\r
-\r
-REM \r
-REM EasyGPS. Another binary format.\r
-REM \r
-DEL %TMPDIR%\easy.loc\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i easygps -f reference\easygps.loc -o easygps -F %TMPDIR%\ez.loc\r
-%PNAME% -i easygps -f reference\easygps.loc -o gpx -F %TMPDIR%\ez1.gpx\r
-%PNAME% -i easygps -f %TMPDIR%\ez.loc -o gpx -F %TMPDIR%\ez2.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\ez1.gpx %TMPDIR%\ez2.gpx\r
-\r
-REM \r
-REM GPilotS. A Palm format. Another binary format that \r
-REM \r
-REM rm -f ${TMPDIR/gpilots.l\r
-REM ${PNAME} -i easygps -f reference/gpilots.pdb -o gpx -F ${TMPDIR}/gp.gpx\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o gpilots -F %TMPDIR%\blah.pdb\r
-%PNAME% -i gpilots -f %TMPDIR%\blah.pdb -o gpx -F %TMPDIR%\1.gpx\r
-%PNAME% -i gpilots -f reference\gpilots.pdb -o gpx -F %TMPDIR%\2.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\1.gpx %TMPDIR%\2.gpx\r
-REM ${PNAME} -i easygps -f reference/gpilots.pdb -o gpx -F ${TMPDIR}/gp.gpx\r
-\r
-REM \r
-REM Navicache.\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i navicache -f reference\navicache.xml -o gpsutil -F %TMPDIR%\navi.wpt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\navi.wpt reference\navicache.ref\r
-REM \r
-\r
-REM \r
-REM CoastalExplorer..\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -r -i coastexp -f reference\coastexp.nob -o gpx -F %TMPDIR%\coastexp.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\coastexp.gpx reference\coastexp.ref\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -r -i gpx -f %TMPDIR%\coastexp.gpx -o coastexp -F %TMPDIR%\coastexp.nob\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\coastexp.nob reference\coastexp.ref2\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -w -i coastexp -f reference\coastexp.nob -o gpx -F %TMPDIR%\coastexp.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\coastexp.gpx reference\coastexp.ref3\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -w -i gpx -f %TMPDIR%\coastexp.gpx -o coastexp -F %TMPDIR%\coastexp.nob\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\coastexp.nob reference\coastexp.ref4\r
-REM \r
-\r
-REM PsiTrex. A text format that can't be handled by XCSV due to context of\r
-REM data based on other data values in the file\r
-REM Waypoints first\r
-DEL %TMPDIR%\psit-ww.txt %TMPDIR%\psit-ww.mps\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i psitrex -f reference\psitwpts.txt -o mapsource -F %TMPDIR%\psit-ww.mps\r
-%PNAME% -i mapsource -f %TMPDIR%\psit-ww.mps -o psitrex -F %TMPDIR%\psit-ww.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\psitwpts.txt %TMPDIR%\psit-ww.txt\r
-\r
-REM Now test correct "empty" handling - ask for routes when there aren't any\r
-REM Uses mapsource as the empty handling for this has already happened above\r
-DEL %TMPDIR%\psit-wr.mps\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -r -i psitrex -f reference\psitwpts.txt -o mapsource,mpsverout=3 -F %TMPDIR%\psit-wr.mps\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\mps-empty.mps %TMPDIR%\psit-wr.mps\r
-\r
-REM Routes next\r
-DEL %TMPDIR%\psit-rr.txt %TMPDIR%\psit-rr.mps\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -r -i psitrex -f reference\route\psitrtes.txt -o mapsource -F %TMPDIR%\psit-rr.mps\r
-%PNAME% -r -i mapsource -f %TMPDIR%\psit-rr.mps -o psitrex -F %TMPDIR%\psit-rr.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\route\psitrtes.txt %TMPDIR%\psit-rr.txt\r
-\r
-REM Now test correct "empty" handling - ask for tracks when there aren't any\r
-REM Uses mapsource as the empty handling for this has already happened above\r
-DEL %TMPDIR%\psit-rt.mps\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -t -i psitrex -f reference\route\psitrtes.txt -o mapsource,mpsverout=3 -F %TMPDIR%\psit-rt.mps\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\mps-empty.mps %TMPDIR%\psit-rt.mps\r
-\r
-REM Tracks last\r
-DEL %TMPDIR%\psit-tt.txt %TMPDIR%\psit-tt.mps\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -t -i psitrex -f reference\track\psittrks.txt -o mapsource -F %TMPDIR%\psit-tt.mps\r
-%PNAME% -t -i mapsource -f %TMPDIR%\psit-tt.mps -o psitrex -F %TMPDIR%\psit-tt.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\track\psittrks.txt %TMPDIR%\psit-tt.txt\r
-\r
-REM Now test correct "empty" handling - ask for waypoints when there aren't any\r
-REM Uses mapsource as the empty handling for this has already happened above\r
-DEL %TMPDIR%\psit-tw.mps\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i psitrex -f reference\track\psittrks.txt -o mapsource,mpsverout=3 -F %TMPDIR%\psit-tw.mps\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\mps-empty.mps %TMPDIR%\psit-tw.mps\r
-\r
-REM \r
-REM Arc Distance filter\r
-REM \r
-DEL %TMPDIR%\arcdist.txt\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i xmap -f reference\arcdist_input.txt -x arc,file=reference\arcdist_arc.txt,distance=1 -o xmap -F %TMPDIR%\arcdist.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\arcdist.txt reference\arcdist_output.txt\r
-\r
-REM \r
-REM Polygon filter\r
-REM \r
-DEL %TMPDIR%\polygon.txt\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i xmap -f reference\arcdist_input.txt -x polygon,file=reference\polygon_allencty.txt -o xmap -F %TMPDIR%\polygon.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\polygon.txt reference\polygon_output.txt\r
-\r
-REM \r
-REM Simplify filter\r
-REM \r
-DEL %TMPDIR%\simplify.txt\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -r -i gpx -f reference\route\route.gpx -x simplify,count=10 -o arc -F %TMPDIR%\simplify.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\simplify.txt reference\simplify_output.txt\r
-\r
-REM \r
-REM Route reversal filter. Do it twice and be sure we get what we\r
-REM started with.\r
-REM \r
-DEL %TMPDIR%\reverse1.arc %TMPDIR%\reverse2.arc %TMPDIR%\reference.arc\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -r -i gpx -f reference\route\route.gpx -o arc -F %TMPDIR%\reference.arc\r
-%PNAME% -r -i gpx -f reference\route\route.gpx -x reverse -o arc -F %TMPDIR%\reverse1.arc\r
-%PNAME% -r -i gpx -f reference\route\route.gpx -x reverse -x reverse -o arc -F %TMPDIR%\reverse2.arc\r
-@echo off\r
-@echo.\r
-REM Verify the first and last are the same\r
-CALL :COMPARE %TMPDIR%\reference.arc %TMPDIR%\reverse2.arc\r
-REM Verify the first and second are different.\r
-REM ${DIFF} ${TMPDIR}/reverse1.arc ${TMPDIR}/reverse2.arc > /dev/null && {\r
-REM echo ERROR Failed reversal test.\r
-REM exit 1\r
-REM }\r
-\r
-REM parkrrrr: This isn't a straightforward compare; we *want* it to fail.\r
-REM Obviously this test should just be rewritten with a new reference.\r
-REM compare ${TMPDIR}/reverse1.arc ${TMPDIR}/reverse2.arc\r
-\r
-REM \r
-REM Geoniche: No reference file was available, so we created one and just\r
-REM test it against itself.\r
-REM \r
-DEL %TMPDIR%\gn.pdb %TMPDIR%\1.gpx %TMPDIR%\2.gpx\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geoniche -f reference\geoniche.pdb -o geoniche -F %TMPDIR%\gn.pdb\r
-%PNAME% -i geoniche -f reference\geoniche.pdb -o gpx -F %TMPDIR%\1.gpx\r
-%PNAME% -i geoniche -f %TMPDIR%\gn.pdb -o gpx -F %TMPDIR%\2.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\1.gpx %TMPDIR%\2.gpx\r
-REM \r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geoniche -f reference\gn-targets.pdb -o gpx -F %TMPDIR%\gn-targets.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\gn-targets.gpx reference\gn-targets.gpx\r
-\r
-REM \r
-REM saroute covers *.anr, *.rte, and *.rtd, but I only have an .anr for testing.\r
-REM Unfortunately for us, this is a read-only format for now.\r
-REM \r
-@echo on\r
-@echo Testing...\r
-%PNAME% -t -i saroute -f reference\track\i65.anr -o gpx -F %TMPDIR%\gpl1.gpx\r
-%PNAME% -t -i gpx -f reference\track\i65.anr.gpx -o gpx -F %TMPDIR%\gpl2.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\gpl1.gpx %TMPDIR%\gpl2.gpx\r
-\r
-REM \r
-REM Delorme GPL file. This is sort of a track format.\r
-REM \r
-DEL %TMPDIR%\gpl1.gpx %TMPDIR%\gpl2.gpx %TMPDIR%\gpl1.gpl\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -t -i gpl -f reference\track\webpark1.gpl -o gpx -F %TMPDIR%\gpl1.gpx\r
-%PNAME% -t -i gpl -f reference\track\webpark1.gpl -o gpl -F %TMPDIR%\gpl1.gpl\r
-%PNAME% -t -i gpl -f %TMPDIR%\gpl1.gpl -o gpx -F %TMPDIR%\gpl2.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\gpl1.gpx %TMPDIR%\gpl2.gpx\r
-\r
-REM \r
-REM NetStumbler Summary File (read-only)\r
-REM \r
-DEL %TMPDIR%\netstumbler.mps\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i netstumbler -f reference\netstumbler.txt -o mapsource -F %TMPDIR%\netstumbler.mps\r
-@echo off\r
-@echo.\r
-CALL :BINCOMPARE %TMPDIR%\netstumbler.mps reference\netstumbler.mps\r
-\r
-REM \r
-REM IGC tests\r
-REM \r
-DEL %TMPDIR%\igc*out\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gpx -f reference\igc1.gpx -o igc -F %TMPDIR%\igc.out\r
-@echo off\r
-@echo.\r
-FINDSTR /V /R /C:"^LXXXGenerated by GPSBabel Version" %TMPDIR%\igc.out> %TMPDIR%\igc_sed.out\r
-CALL :COMPARE %TMPDIR%\igc_sed.out reference\igc1_igc.out\r
-\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i igc -f %TMPDIR%\igc.out -o gpx -F %TMPDIR%\igc.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\igc.gpx reference\igc1_gpx.out\r
-\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gpx -f %TMPDIR%\igc.gpx -o igc -F %TMPDIR%\igc.out\r
-@echo off\r
-@echo.\r
-FINDSTR /V /R /C:"^LXXXGenerated by GPSBabel Version" %TMPDIR%\igc.out> %TMPDIR%\igc_sed.out\r
-CALL :COMPARE %TMPDIR%\igc_sed.out reference\igc1_igc.out\r
-\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gpx -f reference\igc1_baro.gpx -i igc -f reference\igc1_igc.out -o igc,timeadj=auto -F %TMPDIR%\igc.out\r
-@echo off\r
-@echo.\r
-FINDSTR /V /R /C:"^LXXXGenerated by GPSBabel Version" %TMPDIR%\igc.out> %TMPDIR%\igc_sed.out\r
-CALL :COMPARE %TMPDIR%\igc_sed.out reference\igc1_3d.out\r
-\r
-\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i igc -f reference\igc2.igc -o gpx -F %TMPDIR%\igc.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\igc.gpx reference\igc2_gpx.out\r
-\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gpx -f %TMPDIR%\igc.gpx -o igc -F %TMPDIR%\igc.out\r
-@echo off\r
-@echo.\r
-FINDSTR /V /R /C:"^LXXXGenerated by GPSBabel Version" %TMPDIR%\igc.out> %TMPDIR%\igc_sed.out\r
-CALL :COMPARE %TMPDIR%\igc_sed.out reference\igc2_igc.out\r
-\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i igc -f %TMPDIR%\igc.out -o gpx -F %TMPDIR%\igc.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\igc.gpx reference\igc2_gpx.out\r
-\r
-REM \r
-REM Google Maps XML test\r
-REM \r
-DEL %TMPDIR%\google.out\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i google -f reference\google.xml -o csv -F %TMPDIR%\google.out\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\google.out reference\google.csv\r
-\r
-DEL %TMPDIR%\google.out\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i google -f reference\google.js -o csv -F %TMPDIR%\google.out\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\google.out reference\google.csv\r
-\r
-DEL %TMPDIR%\google.out\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i google -f reference\google_jan_06.html -o csv -F %TMPDIR%\google.out\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\google.out reference\google_jan_06.csv\r
-\r
-REM \r
-REM DeLorme .an1 tests\r
-REM \r
-DEL %TMPDIR%\an1.out\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i an1 -f reference\foo.an1 -o csv -F %TMPDIR%\an1.out\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\an1.out reference\an1-in.ref\r
-\r
-DEL %TMPDIR%\an1.out\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i an1 -f reference\foo.an1 -o an1 -F %TMPDIR%\an1.out\r
-@echo off\r
-@echo.\r
-CALL :BINCOMPARE %TMPDIR%\an1.out reference\an1-an1.ref\r
-\r
-DEL %TMPDIR%\an1.out\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i xmap -f reference\xmap -o an1 -F %TMPDIR%\an1.out \r
-@echo off\r
-@echo.\r
-CALL :BINCOMPARE %TMPDIR%\an1.out reference\an1-out.ref\r
-\r
-DEL %TMPDIR%\an1.out\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i google -f reference\google.js -o an1 -F %TMPDIR%\an1.out\r
-@echo off\r
-@echo.\r
-CALL :BINCOMPARE %TMPDIR%\an1.out reference\an1-line-out.ref\r
-\r
-REM \r
-REM TomTom .ov2 tests\r
-REM \r
-\r
-DEL %TMPDIR%\ov2.out\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i arc -f reference\google.arc -o tomtom -F %TMPDIR%\ov2.out\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\ov2.out reference\ov2-arc-out.ref\r
-\r
-DEL %TMPDIR%\ov2.out\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f reference\gl.loc -o tomtom -F %TMPDIR%\ov2.out\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\ov2.out reference\ov2-geo-out.ref\r
-\r
-DEL %TMPDIR%\ov2.out\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i tomtom -f reference\ov2-geo-out.ref -o gpsutil -F %TMPDIR%\ov2.out\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\ov2.out reference\ov2-in.ref\r
-\r
-REM \r
-REM XCSV "human readable" tests\r
-REM \r
-DEL %TMPDIR%\humanread.out\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i xcsv,style=reference\humanread.style -f reference\human.in -o arc -F %TMPDIR%\humanread.out\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\humanread.out reference\humanread.out\r
-\r
-DEL %TMPDIR%\humanwrite.out\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i xcsv,style=reference\humanread.style -f reference\human.in -o xcsv,style=reference\humanwrite.style -F %TMPDIR%\humanwrite.out\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\humanwrite.out reference\humanwrite.out\r
-\r
-REM \r
-REM XCSV "path distance" test\r
-REM \r
-DEL %TMPDIR%\pathdist.out\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i magellan -f reference\dusky.trk -o xcsv,style=reference\gnuplot.style -F %TMPDIR%\pathdist.out\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\pathdist.out reference\dusky.gnuplot\r
-\r
-REM hsandv\r
-DEL %TMPDIR%\hsandv.exp %TMPDIR%\1.exp %TMPDIR%\1.exp %TMPDIR%\Glad_5.exp\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o hsandv -F %TMPDIR%\hsandv.exp\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\hsandv.exp reference\r
-REM the hsandv format is too lossy to do this test :(\r
-REM ${PNAME} -i hsandv -f ${TMPDIR}/hsandv.exp -o geo -F ${TMPDIR}/1.exp\r
-REM ${PNAME} -i hsandv -f reference/hsandv.exp -o geo -F ${TMPDIR}/2.exp\r
-REM compare ${TMPDIR}/1.exp ${TMPDIR}/2.exp\r
-REM test conversion from v4 to v5 files\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i hsandv -f reference\Glad_4.exp -o hsandv -F %TMPDIR%\Glad_5.exp\r
-@echo off\r
-@echo.\r
-REM FIXME: Can't compare directly because of potential FP rounding.\r
-REM FIXME: compare ${TMPDIR}/Glad_5.exp reference\r
-\r
-REM \r
-REM stack filter tests\r
-REM These don't actually test for proper behavior, for now, but they do \r
-REM exercise all of the currently-extant filter code.\r
-REM \r
-\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -x stack,push,copy,nowarn -x stack,push,copy -x stack,push -x stack,pop,replace -x stack,pop,append -x stack,push,copy -x stack,pop,discard -x stack,swap,depth=1 -o arc -F %TMPDIR%\stackfilt.txt\r
-@echo off\r
-@echo.\r
-\r
-REM \r
-REM 'tabsep' isn't really tested in any non-trivial way, but we do exercise\r
-REM it.\r
-REM \r
-\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o tabsep -F %TMPDIR%\tabsep.in\r
-%PNAME% -i tabsep -f %TMPDIR%\tabsep.in -o geo -F %TMPDIR%\tabsep.out\r
-%PNAME% -i geo -f geocaching.loc -o geo -F %TMPDIR%\geotabsep.out\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\tabsep.out %TMPDIR%\geotabsep.out\r
-\r
-REM \r
-REM Now do the same for custom - it has the same issues.\r
-REM \r
-\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o custom -F %TMPDIR%\custom.in\r
-%PNAME% -i custom -f %TMPDIR%\custom.in -o geo -F %TMPDIR%\custom.out\r
-%PNAME% -i geo -f geocaching.loc -o geo -F %TMPDIR%\geocustom.out\r
-@echo off\r
-@echo.\r
-\r
-REM \r
-REM Write something to the various output-only formats\r
-REM \r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o text -F %TMPDIR%\text.out -o html -F %TMPDIR%\html.out -o vcard -F %TMPDIR%\vcard.out #-o palmdoc -F %TMPDIR%\pd.out\r
-@echo off\r
-@echo.\r
-\r
-REM \r
-REM tef "TourExchangeFormat" read test\r
-REM \r
-DEL %TMPDIR%\tef_xml*\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -r -i tef -f reference\route\tef_xml.sample.xml -o gpx -F %TMPDIR%\tef_xml.sample.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\tef_xml.sample.gpx reference\route\tef_xml.sample.gpx \r
-\r
-REM \r
-REM PathAway Palm Database .pdb tests\r
-REM \r
-DEL %TMPDIR%\pathaway*\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o pathaway,dbname=pathaway-geo -F %TMPDIR%\pathaway-geo.pdb\r
-%PNAME% -i pathaway -f %TMPDIR%\pathaway-geo.pdb -o geo -F %TMPDIR%\pathaway-geo.loc\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\pathaway-geo.loc reference\pathaway-geo.loc\r
-DEL %TMPDIR%\pathaway*\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -t -i pathaway -f reference\track\pathaway.pdb -o gpx -F %TMPDIR%\pathaway.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\pathaway.gpx reference\track\pathaway.gpx\r
-\r
-REM \r
-REM Garmin GPS Database .gdb tests\r
-REM \r
-DEL %TMPDIR%\gdb-*\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gdb,via -f reference\gdb-sample.gdb -o gpx -F %TMPDIR%\gdb-sample.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\gdb-sample.gpx %TMPDIR%\gdb-sample.gpx\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gpx -f reference\gdb-sample.gpx -o gdb,ver=1 -F %TMPDIR%\gdb-sample.gdb\r
-%PNAME% -i gdb -f %TMPDIR%\gdb-sample.gdb -o gpx -F %TMPDIR%\gdb-sample.gpx\r
-@echo off\r
-@echo.\r
-REM \r
-REM Because of Garmin coordinates storage gpx is not good for this test\r
-REM compare reference/gdb-sample.gpx ${TMPDIR}/gdb-sample.gpx\r
-REM \r
-REM compare ${TMPDIR}/gdb-sample.gpx reference/gdb-sample.gpx \r
-\r
-REM \r
-REM Vito Navigator II .smt tests\r
-REM \r
-DEL %TMPDIR%\vitosmt*\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i vitosmt -f reference\vitosmt.smt -o gpx -F %TMPDIR%\vitosmt.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\vitosmt.gpx reference\vitosmt.gpx\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -t -i vitosmt -f reference\vitosmt.smt -o gpx -F %TMPDIR%\vitosmt_t.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\vitosmt_t.gpx reference\track\vitosmt_t.gpx\r
-\r
-REM \r
-REM tracks filter tests\r
-REM \r
-\r
-DEL %TMPDIR%\trackfilter*\r
-\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -t -i gpx -f reference\track\trackfilter.gpx -x track,pack,split,title=LOG-%%Y%%m%%d -o gpx -F %TMPDIR%\trackfilter.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\trackfilter.gpx reference\track\trackfilter.gpx\r
-\r
-REM \r
-REM Map&Guide Motorrad Routenplaner .bcr files test\r
-REM \r
-DEL %TMPDIR%\bcr*\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -r -i bcr -f reference\route\bcr-sample.bcr -o gpx -F %TMPDIR%\bcr-sample.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\bcr-sample.gpx reference\route\bcr-sample.gpx \r
-@echo on\r
-@echo Testing...\r
-%PNAME% -r -i gpx -f reference\route\bcr-sample.gpx -o bcr -F %TMPDIR%\bcr-sample2.bcr\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\route\bcr-sample2.bcr %TMPDIR%\bcr-sample2.bcr\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -r -i bcr -f %TMPDIR%\bcr-sample2.bcr -o gpx -F %TMPDIR%\bcr-sample2.gpx\r
-@echo off\r
-@echo.\r
-\r
-REM \r
-REM cet - Character encoding transformation tests\r
-REM \r
-DEL %TMPDIR%\cet-sample*\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -w -i gdb -f reference\cet\cet-sample.gdb -o gpx -F %TMPDIR%\cet-sample.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\cet-sample.gpx reference\cet\cet-sample.gpx\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -w -i gpx -f %TMPDIR%\cet-sample.gpx -o tmpro -c Latin1 -F %TMPDIR%\cet-sample.latin1.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\cet-sample.latin1.txt reference\cet\cet-sample.latin1.txt\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -w -i gdb -f reference\cet\cet-sample.gdb -o tmpro -c Latin2 -F %TMPDIR%\cet-sample.latin2.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\cet-sample.latin2.txt reference\cet\cet-sample.latin2.txt\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -w -i gdb -f reference\cet\cet-sample.gdb -o tmpro -c cp1250 -F %TMPDIR%\cet-sample.cp1250.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\cet-sample.cp1250.txt reference\cet\cet-sample.cp1250.txt\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -w -i gdb -f reference\cet\cet-sample.gdb -o tmpro -c macroman -F %TMPDIR%\cet-sample.macroman.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\cet-sample.macroman.txt reference\cet\cet-sample.macroman.txt\r
-\r
-REM \r
-REM Garmin logbook. This format has an extra section (lap data with things\r
-REM like heartbeat and calories burned) that we don't know what to do with,\r
-REM so we convert it to gpx, convert it to itself, convert THAT to gpx, and\r
-REM compare those.\r
-REM \r
-DEL %TMPDIR%\glogbook*\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i glogbook -f reference\track\garmin_logbook.xml -o gpx -F %TMPDIR%\glog1.gpx\r
-%PNAME% -i glogbook -f reference\track\garmin_logbook.xml -o glogbook -F %TMPDIR%\glog.xml\r
-%PNAME% -i glogbook -f %TMPDIR%\glog.xml -o gpx -F %TMPDIR%\glog2.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\glog1.gpx %TMPDIR%\glog2.gpx\r
-\r
-REM \r
-REM Dop filter test\r
-REM \r
-DEL %TMPDIR%\dop*\r
-FINDSTR /V /R /C:"<hdop>50" reference\dop-test.gpx | %PNAME% -i gpx -f - -o openoffice -F - | sed 's\RPT...\\g'> %TMPDIR%\dop-hdop.ref\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gpx -f reference\dop-test.gpx -x discard,hdop=50 -o openoffice -F - | sed 's\RPT...\\g'> %TMPDIR%\dop-hdop.fil\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\dop-hdop.ref %TMPDIR%\dop-hdop.fil\r
-FINDSTR /V /R /C:"<vdop>50" reference\dop-test.gpx | %PNAME% -i gpx -f - -o openoffice -F - | sed 's\RPT...\\g'> %TMPDIR%\dop-vdop.ref\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gpx -f reference\dop-test.gpx -x discard,vdop=50 -o openoffice -F - | sed 's\RPT...\\g'> %TMPDIR%\dop-vdop.fil\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\dop-vdop.ref %TMPDIR%\dop-vdop.fil\r
-\r
-REM \r
-REM cotoGPS tests\r
-REM \r
-DEL %TMPDIR%\coto*\r
-REM Track reading\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i coto -f reference\cototesttrack.pdb -o xcsv,style=reference\cototest.style -F %TMPDIR%\cototrack.csv\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\cototesttrack.csv %TMPDIR%\cototrack.csv\r
-REM Marker read\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i coto -f reference\cototestmarker.pdb -o gpx -F %TMPDIR%\cotomarker.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\cototestmarker.gpx %TMPDIR%\cotomarker.gpx\r
-REM Marker write\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gpx -f reference\cototestmarker.gpx -o coto -F %TMPDIR%\cotomarker.pdb\r
-@echo off\r
-@echo.\r
-REM bincompare reference/cototestmarker.pdb ${TMPDIR}/cotomarker.pdb\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i coto -f %TMPDIR%\cotomarker.pdb -o gpx -F %TMPDIR%\cotomarker.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\cototestmarker.gpx %TMPDIR%\cotomarker.gpx\r
-\r
-REM \r
-REM Fugawi test cases\r
-DEL %TMPDIR%\fugawi*\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i fugawi -f reference\fugawi.notime.txt -o fugawi -F %TMPDIR%\fugawi1.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\fugawi.ref.txt %TMPDIR%\fugawi1.txt\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i geo -f geocaching.loc -o fugawi -F %TMPDIR%\fugawi2.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\fugawi.ref.txt %TMPDIR%\fugawi2.txt\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i fugawi -f %TMPDIR%\fugawi2.txt -o fugawi -F %TMPDIR%\fugawi3.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\fugawi2.txt %TMPDIR%\fugawi3.txt\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i fugawi -f reference\fugawi.time.txt -o fugawi -F %TMPDIR%\fugawi4.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\fugawi.time.ref.txt %TMPDIR%\fugawi4.txt\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gpx -f reference\track\tracks.gpx -o fugawi -F %TMPDIR%\fugawi5.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\track\fugawi.txt %TMPDIR%\fugawi5.txt\r
-\r
-REM \r
-REM Magellan Explorist geocaching format (write-only).\r
-REM \r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gpx -f reference\gc\GC7FA4.gpx -f reference\gc\GCGCA8.gpx -o maggeo -F %TMPDIR%\maggeo.gs\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\gc\maggeo.gs %TMPDIR%\maggeo.gs\r
-\r
-REM \r
-REM IGN Rando tests\r
-REM \r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i ignrando -f reference\track\ignrando-sample.rdn -o ignrando -F %TMPDIR%\ignrando-sample.rdn\r
-%PNAME% -i ignrando -f %TMPDIR%\ignrando-sample.rdn -o gpx -F %TMPDIR%\ignrando-sample.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\ignrando-sample.gpx reference\track\ignrando-sample.gpx\r
-\r
-REM \r
-REM STMwpp "Suunto Trek Manager" WaypointPlus format tests\r
-REM \r
-DEL %TMPDIR%\stmwpp-*\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i stmwpp -f reference\track\stmwpp-track.txt -o gpx -F %TMPDIR%\stmwpp-track.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\stmwpp-track.gpx reference\track\stmwpp-track.gpx\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i stmwpp -f reference\route\stmwpp-route.txt -o gpx -F %TMPDIR%\stmwpp-route.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\stmwpp-route.gpx reference\route\stmwpp-route.gpx\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i stmwpp -f reference\route\stmwpp-route.txt -o stmwpp -F %TMPDIR%\stmwpp-route.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\stmwpp-route.txt reference\route\stmwpp-route.txt\r
-\r
-REM \r
-REM Microsoft AutoRoute 2002 test (read-only)\r
-REM \r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i msroute -f reference\route\msroute-sample.axe -o gpx -F %TMPDIR%\msroute-sample.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\msroute-sample.gpx reference\route\msroute-sample.gpx\r
-\r
-REM \r
-REM CarteSurTable read test\r
-REM \r
-DEL %TMPDIR%\cst-*\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i cst -f reference\route\cst-sample.cst -o gpx -F %TMPDIR%\cst-sample.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\cst-sample.gpx reference\route\cst-sample.gpx\r
-\r
-REM \r
-REM Navigon Mobile Navigator .rte tests\r
-REM \r
-DEL %TMPDIR%\nmn4-sample*\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i nmn4 -f reference\route\nmn4-sample.rte -o gpx -F %TMPDIR%\nmn4-sample.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\route\nmn4-sample.gpx %TMPDIR%\nmn4-sample.gpx\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gpx -f reference\route\nmn4-sample.gpx -o nmn4 -F %TMPDIR%\nmn4-sample-out.rte\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\route\nmn4-sample-out.rte %TMPDIR%\nmn4-sample-out.rte\r
-\r
-REM \r
-REM Map&Guide Palm/OS .pdb files (read-only)\r
-REM \r
-DEL %TMPDIR%\mag_pdb-*\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i mag_pdb -f reference\route\mag_pdb-sample.pdb -o gpx -F %TMPDIR%\mag_pdb-sample.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\mag_pdb-sample.gpx reference\route\mag_pdb-sample.gpx\r
-\r
-REM \r
-REM CompeGPS I/O tests\r
-REM \r
-DEL %TMPDIR%\compegps*\r
-REM read (CompeGPS)\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i compegps -f reference\compegps.wpt -o gpx -F %TMPDIR%\compegps-wpt.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\compegps-wpt.gpx %TMPDIR%\compegps-wpt.gpx\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i compegps -f reference\route\compegps.rte -o gpx -F %TMPDIR%\compegps-rte.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\route\compegps-rte.gpx %TMPDIR%\compegps-rte.gpx\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i compegps -f reference\track\compegps.trk -o gpx -F %TMPDIR%\compegps-trk.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\track\compegps-trk.gpx %TMPDIR%\compegps-trk.gpx\r
-REM write (CompeGPS)\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i compegps -f reference\compegps.wpt -o compegps -F %TMPDIR%\compegps.wpt\r
-%PNAME% -i compegps -f %TMPDIR%\compegps.wpt -o gpx -F %TMPDIR%\compegps-wpt2.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\compegps-wpt.gpx %TMPDIR%\compegps-wpt2.gpx\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -t -i compegps -f reference\track\compegps.trk -o compegps -F %TMPDIR%\compegps.trk\r
-%PNAME% -i compegps -f %TMPDIR%\compegps.trk -o gpx -F %TMPDIR%\compegps-trk2.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\track\compegps-trk.gpx %TMPDIR%\compegps-trk2.gpx\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -r -i compegps -f reference\route\compegps.rte -o compegps -F %TMPDIR%\compegps.rte\r
-%PNAME% -i compegps -f %TMPDIR%\compegps.rte -o gpx -F %TMPDIR%\compegps-rte2.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\route\compegps-rte.gpx %TMPDIR%\compegps-rte2.gpx\r
-\r
-REM \r
-REM Testing the 'nuketypes' filter is funky.\r
-REM Convert a GPX file to GPX to eliminate jitter.\r
-REM Then nuke the all but the three individual types, merge the result together\r
-REM and verify we got the original back.\r
-REM \r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gpx -f reference\gdb-sample.gpx -o gpx -F %TMPDIR%\alltypes.gpx\r
-%PNAME% -i gpx -f %TMPDIR%\alltypes.gpx -x nuketypes,tracks,routes -o gpx -F %TMPDIR%\wpts.gpx\r
-%PNAME% -i gpx -f %TMPDIR%\alltypes.gpx -x nuketypes,waypoints,routes -o gpx -F %TMPDIR%\trks.gpx\r
-%PNAME% -i gpx -f %TMPDIR%\alltypes.gpx -x nuketypes,waypoints,tracks -o gpx -F %TMPDIR%\rtes.gpx\r
-%PNAME% -i gpx -f %TMPDIR%\wpts.gpx -f %TMPDIR%\trks.gpx -f %TMPDIR%\rtes.gpx -o gpx -F %TMPDIR%\merged.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\alltypes.gpx %TMPDIR%\merged.gpx\r
-\r
-REM \r
-REM Interpolate filter\r
-REM \r
-\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gpx -f reference\track\simpletrack.gpx -x interpolate,distance=50m -o gpx -F %TMPDIR%\interp.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\track\interptrack.gpx %TMPDIR%\interp.gpx \r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gpx -f reference\track\simpletrack.gpx -x interpolate,time=1 -o gpx -F %TMPDIR%\tinterp.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\track\tinterptrack.gpx %TMPDIR%\tinterp.gpx \r
-\r
-REM \r
-REM Universal CSV - unicsv\r
-REM \r
-ECHO lat,lon,descr,name,notes,unk,unk> %TMPDIR%\unicsv.txt\r
-TYPE reference\mxf.mxf>> %TMPDIR%\unicsv.txt\r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i unicsv -f %TMPDIR%\unicsv.txt -o gpx -F %TMPDIR%\unicsv.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\unicsv.gpx reference\unicsv.gpx\r
-\r
-REM \r
-REM Basic NMEA tests\r
-REM \r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i nmea -f reference\track\nmea -o gpx -F %TMPDIR%\nmea.gpx\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\nmea.gpx reference\track\nmea.gpx\r
-\r
-REM \r
-REM Wfff.\r
-REM \r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i wfff -f reference\wfff.xml -o gpsutil -F %TMPDIR%\wfff.gpu\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\wfff.gpu reference\wfff.gpu\r
-\r
-REM \r
-REM Garmin MapSource tab delimited text files - garmin_txt\r
-REM \r
-DEL %TMPDIR%\garmin_txt*\r
-REM \r
-REM !!! garmin_txt timestamps are stored in localtime !!!\r
-REM \r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i gdb -f reference\gdb-sample2.gdb -o garmin_txt,utc,prec=9 -F %TMPDIR%\garmin_txt.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE reference\garmin_txt.txt %TMPDIR%\garmin_txt.txt \r
-@echo on\r
-@echo Testing...\r
-%PNAME% -i garmin_txt -f reference\garmin_txt.txt -o garmin_txt,prec=9 -F %TMPDIR%\garmin_txt-2.txt\r
-%PNAME% -i garmin_txt -f %TMPDIR%\garmin_txt-2.txt -o garmin_txt,prec=9 -F %TMPDIR%\garmin_txt-3.txt\r
-@echo off\r
-@echo.\r
-CALL :COMPARE %TMPDIR%\garmin_txt-2.txt %TMPDIR%\garmin_txt-3.txt\r
-\r